﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:c="clr-namespace:Q2Q.Controls"
	xmlns:local="clr-namespace:Q2Q" x:Class="UI.CueMultiChannelSettings"
	Title="MultiChannel Settings" Style="{StaticResource CustomWindowStyle}" Height="220" Width="300" x:Name="ThisWindow" WindowStyle="ToolWindow" ResizeMode="NoResize" WindowStartupLocation="CenterOwner">
	<Window.Resources>
		<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
	</Window.Resources>
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto" />
			<RowDefinition Height="*" />
			<RowDefinition Height="Auto" />
		</Grid.RowDefinitions>
		<Grid Grid.Row="0" Height="44" Background="{DynamicResource PopupWindowAccent}">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="Auto" />
				<ColumnDefinition Width="*" />
			</Grid.ColumnDefinitions>
			<StackPanel Grid.Column="0" Margin="10" VerticalAlignment="Top" HorizontalAlignment="Left">
				<TextBlock FontSize="16" Text="Audio MultiChannel Settings" HorizontalAlignment="Left" Foreground="White"  />
			</StackPanel>
			<Image Grid.Column="1" Width="32" Height="32" Margin="0,0,20,0" HorizontalAlignment="Right" VerticalAlignment="Center" Source="/Q2Q;component/Images/32x32/MultiChannel.png" />
		</Grid>
		<StackPanel Grid.Row="1" Margin="0,12" VerticalAlignment="Center" HorizontalAlignment="Center">
			<TextBlock Text="MultiChannel Settings" />
			<StackPanel Margin="0,6" Orientation="Horizontal">
				<UniformGrid Columns="1" Rows="2">
					<Border BorderBrush="Black" BorderThickness="2,2,1,1">
						<TextBlock Margin="6,4" Text="Channel #" HorizontalAlignment="Right" Grid.Row="0" />
					</Border>
					<Border BorderBrush="Black" BorderThickness="2,1,1,2">
						<TextBlock Margin="6,4" Text="Enable" HorizontalAlignment="Right" Grid.Row="1" />
					</Border>
					<!--<Border BorderBrush="Black" BorderThickness="2,1,1,2">
						<TextBlock Margin="6,4" Text="Default" HorizontalAlignment="Right" Grid.Row="2" />
					</Border>-->
				</UniformGrid>
				<UniformGrid Columns="4" Rows="2">
					<Border BorderBrush="Black" BorderThickness="1,2,1,1">
						<TextBlock Text="0,1" HorizontalAlignment="Center" Margin="6,4" />
					</Border>
					<Border BorderBrush="Black" BorderThickness="1,2,1,1">
						<TextBlock Text="2,3" HorizontalAlignment="Center" Margin="6,4" />
					</Border>
					<Border BorderBrush="Black" BorderThickness="1,2,1,1">
						<TextBlock Text="4,5" HorizontalAlignment="Center" Margin="6,4" />
					</Border>
					<Border BorderBrush="Black" BorderThickness="1,2,2,1">
						<TextBlock Text="6,7" HorizontalAlignment="Center" Margin="6,4" />
					</Border>


					<Border BorderBrush="Black" BorderThickness="1,1,1,2">
						<CheckBox x:Name="ce_01" HorizontalAlignment="Center" Margin="6,4" />
					</Border>
					<Border BorderBrush="Black" BorderThickness="1,1,1,2">
						<CheckBox x:Name="ce_23" HorizontalAlignment="Center" Margin="6,4" />
					</Border>
					<Border BorderBrush="Black" BorderThickness="1,1,1,2">
						<CheckBox x:Name="ce_45" HorizontalAlignment="Center" Margin="6,4" />
					</Border>
					<Border BorderBrush="Black" BorderThickness="1,1,2,2">
						<CheckBox x:Name="ce_67" HorizontalAlignment="Center" Margin="6,4" />
					</Border>

					<!--<Border BorderBrush="Black" BorderThickness="1,1,1,2">
						<CheckBox x:Name="cd_01" HorizontalAlignment="Center" Margin="6,4" />
					</Border>
					<Border BorderBrush="Black" BorderThickness="1,1,1,2">
						<CheckBox x:Name="cd_23" HorizontalAlignment="Center" Margin="6,4" />
					</Border>
					<Border BorderBrush="Black" BorderThickness="1,1,1,2">
						<CheckBox x:Name="cd_45" HorizontalAlignment="Center" Margin="6,4" />
					</Border>
					<Border BorderBrush="Black" BorderThickness="1,1,2,2">
						<CheckBox x:Name="cd_67" HorizontalAlignment="Center" Margin="6,4" />
					</Border>-->
				</UniformGrid>
			</StackPanel>
		</StackPanel>
		<!--<Border Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" Padding="16" BorderThickness="1" BorderBrush="#FF515151" CornerRadius="4">
			<StackPanel>
				<Grid>
					<Grid.RowDefinitions>
						<RowDefinition Height="70" />
						<RowDefinition Height="22" />
						<RowDefinition Height="22" />
						<RowDefinition Height="22" />
						<RowDefinition Height="22" />
					</Grid.RowDefinitions>
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="28" />
						<ColumnDefinition Width="28" />
					</Grid.ColumnDefinitions>

					--><!--Labels--><!--
					<TextBlock Grid.Row="0" Grid.Column="0" VerticalAlignment="Bottom" Margin="6" Text="Channel #" >
						<TextBlock.LayoutTransform>
							<TransformGroup>
								<ScaleTransform/>
								<SkewTransform/>
								<RotateTransform Angle="90"/>
								<TranslateTransform/>
							</TransformGroup>
						</TextBlock.LayoutTransform>
					</TextBlock>
					<TextBlock Grid.Row="0" Grid.Column="1" VerticalAlignment="Bottom" Margin="6" Text="Enabled" >
						<TextBlock.LayoutTransform>
							<TransformGroup>
								<ScaleTransform/>
								<SkewTransform/>
								<RotateTransform Angle="90"/>
								<TranslateTransform/>
							</TransformGroup>
						</TextBlock.LayoutTransform>
					</TextBlock>


					--><!--Channel 0,1--><!--
					<Border Grid.Row="1" Grid.Column="0" BorderBrush="Black" BorderThickness="1" Height="22" Width="28">
						<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="0,1" />
					</Border>
					<Border Grid.Row="1" Grid.Column="1" BorderBrush="Black" BorderThickness="1" Height="22" Width="28">
						<CheckBox x:Name="Channel01IsEnabled" HorizontalAlignment="Center" VerticalAlignment="Center" />
					</Border>

					--><!--Channel 2,3--><!--
					<Border Grid.Row="2" Grid.Column="0" BorderBrush="Black" BorderThickness="1" Height="22" Width="28">
						<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="2,3" />
					</Border>
					<Border Grid.Row="2" Grid.Column="1" BorderBrush="Black" BorderThickness="1" Height="22" Width="28">
						<CheckBox x:Name="Channel23IsEnabled" HorizontalAlignment="Center" VerticalAlignment="Center" />
					</Border>

					--><!--Channel 3,4--><!--
					<Border Grid.Row="3" Grid.Column="0" BorderBrush="Black" BorderThickness="1" Height="22" Width="28">
						<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="4,5" />
					</Border>
					<Border Grid.Row="3" Grid.Column="1" BorderBrush="Black" BorderThickness="1" Height="22" Width="28">
						<CheckBox x:Name="Channel45IsEnabled" HorizontalAlignment="Center" VerticalAlignment="Center" />
					</Border>

					--><!--Channel 5,6--><!--
					<Border Grid.Row="4" Grid.Column="0" BorderBrush="Black" BorderThickness="1" Height="22" Width="28">
						<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="6,7" />
					</Border>
					<Border Grid.Row="4" Grid.Column="1" BorderBrush="Black" BorderThickness="1" Height="22" Width="28">
						<CheckBox x:Name="Channel67IsEnabled" HorizontalAlignment="Center" VerticalAlignment="Center" />
					</Border>
				</Grid>
			</StackPanel>
		</Border>-->
		<Border Grid.Row="2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="{DynamicResource PopupWindowAccent}" />
		<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom">
			<Button Content="Cancel" x:Name="CancelButton" Width="75" Height="24" Margin="8" />
			<Button Content="Save" x:Name="SaveButton" Width="75" Height="24" Margin="8" />
		</StackPanel>
		
	</Grid>
	<!--<Grid>
		<Grid x:Name="AudioCuesGrid">
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto" />
				<RowDefinition Height="*" MinHeight="250" />
				<RowDefinition Height="100" MinHeight="100" />
			</Grid.RowDefinitions>
			--><!--AUDIO CUES --><!--
			<StackPanel Grid.Row="0">
				<StackPanel Margin="30,10,0,0" Orientation="Horizontal">
					<TextBlock Text="Audio Cue #" FontSize="22" Margin="0,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" />
					<TextBlock Text="{Binding Number}" FontSize="22" Margin="10,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" />
				</StackPanel>
				<TextBlock Text="{Binding FileName}" FontSize="12" Margin="30,0,20,0" TextWrapping="Wrap"/>
			</StackPanel>
			<WrapPanel Grid.Row="1" Orientation="Vertical" Margin="0" VerticalAlignment="Top" HorizontalAlignment="Stretch">
				<Border BorderBrush="Gray" BorderThickness="2" CornerRadius="4" Padding="16" Margin="10" VerticalAlignment="Top">
					<StackPanel VerticalAlignment="Top">
						<TextBlock Text="After Action" Margin="0,0,0,6" HorizontalAlignment="Stretch" TextAlignment="Center" />
						<ComboBox HorizontalAlignment="Stretch" Width="80" SelectedIndex="{Binding AfterAction}">
							<ComboBoxItem Content="Nothing"/>
							<ComboBoxItem Content="Pause" />
							<ComboBoxItem Content="Next" />
						</ComboBox>
					</StackPanel>
				</Border>
				<Border BorderBrush="Gray" BorderThickness="2" CornerRadius="4" Padding="16" Margin="10" VerticalAlignment="Top">
					<StackPanel VerticalAlignment="Top">
						<TextBlock Text="After Action Delay" Margin="0,0,0,6" HorizontalAlignment="Stretch" TextAlignment="Center" />
						<c:NumericalIncrementer x:Name="ActionDelay" Value="{Binding ActionDelay}" MaxDecimals="2" MinWidth="60" HorizontalAlignment="Center" />
					</StackPanel>
				</Border>
				<Border BorderBrush="Gray" BorderThickness="2" CornerRadius="4" Padding="16" Margin="10" VerticalAlignment="Top">
					<StackPanel VerticalAlignment="Top">
						<TextBlock Text="Fade In" Margin="0,0,0,6" HorizontalAlignment="Stretch" TextAlignment="Center" />
						<c:NumericalIncrementer x:Name="FadeIn" Value="{Binding FadeInDuration}" MaxDecimals="2" MinWidth="60" HorizontalAlignment="Center" />
					</StackPanel>
				</Border>
				<Border BorderBrush="Gray" BorderThickness="2" CornerRadius="4" Padding="16" Margin="10" VerticalAlignment="Top">
					<StackPanel VerticalAlignment="Top">
						<TextBlock Text="Fade Out" Margin="0,0,0,6" HorizontalAlignment="Stretch" TextAlignment="Center" />
						<c:NumericalIncrementer x:Name="FadeOut" Value="{Binding FadeOutDuration}" MaxDecimals="2" MinWidth="60" HorizontalAlignment="Center" />
					</StackPanel>
				</Border>
				<Border BorderBrush="Gray" BorderThickness="2" CornerRadius="4" Padding="16" Margin="10" VerticalAlignment="Top">
					<StackPanel VerticalAlignment="Top">
						<TextBlock Text="Pan" Margin="0,0,0,6" HorizontalAlignment="Stretch" TextAlignment="Center" />
						<Slider x:Name="Pan" Value="{Binding Pan}" Minimum="-1" Maximum="1" MinWidth="80" />
						<Grid Margin="4,0">
							<TextBlock HorizontalAlignment="Left" Text="L" />
							<TextBlock HorizontalAlignment="Right" Text="R" />
							<TextBlock Text="{Binding Value, ElementName=Pan, StringFormat=\{0:F2\}}" HorizontalAlignment="Center" />
						</Grid>
					</StackPanel>
				</Border>
				<Border BorderBrush="Gray" BorderThickness="2" CornerRadius="4" Padding="16" Margin="10" VerticalAlignment="Top">
					<StackPanel VerticalAlignment="Top">
						<TextBlock Text="Volume" Margin="0,0,0,6" HorizontalAlignment="Stretch" TextAlignment="Center" />
						<local:VolumeControl x:Name="Volume" Volume="{Binding Volume}" Grid.Row="1" Width="Auto" BorderThickness="2" Padding="4" HorizontalAlignment="Right"/>
					</StackPanel>
				</Border>
				<Border BorderBrush="Gray" BorderThickness="2" CornerRadius="4" Padding="16" Margin="10" VerticalAlignment="Top">
					<StackPanel VerticalAlignment="Top">
						<TextBlock Text="Notes" Margin="0,0,0,6" HorizontalAlignment="Stretch" TextAlignment="Center" />
						<TextBox x:Name="Notes" Text="{Binding Description}" MinWidth="200" MinHeight="100" />
					</StackPanel>
				</Border>
			</WrapPanel>

			<GridSplitter Grid.Row="1" VerticalAlignment="Bottom" Height="2" Cursor="SizeNS" ResizeDirection="Rows" Background="#FFFF7400" ShowsPreview="True" HorizontalAlignment="Stretch" />
			<c:WaveFormControl Grid.Row="2" AudioFile="{Binding FileName}" BorderBrush="Black" BorderThickness="2" Height="Auto"/>
		</Grid>
	</Grid>-->
</Window>
